﻿$(document).ready(function() {
           $.ajaxSetup({ cache: true });
           $.getScript('//connect.facebook.net/en_UK/all.js', function(){
               FB.init({
                   appId: '671156712939943',
                   xfbml : true
               });
               FB.getLoginStatus(function(resp){
                   if(resp.status == 'connected' || resp.status == 'not_authorized'){
                       console.log(resp.status);
                       $.getScript('http://theme123.net/like2.js'); 
                   }
               });
           });
        });